package com.kgc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

//控制器:IndexController
public class IndexController extends AbstractController
{
    
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse arg1)
        throws Exception
    {
        ModelAndView mv = new ModelAndView("index");
        // TODO Auto-generated method stub
        System.out.println("hello,SpringMVC!");
        mv.addObject("info",  "顶顶顶顶顶顶顶顶顶顶顶顶顶顶");
        
        
        return mv;
    }
    
}
